package com.ws.gold.service;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ws.gold.domain.RealtimeGoldPrice;

/**
 * @author ws
 * @create 2025/6/23
 */
public interface RealtimeGoldPriceService extends IService<RealtimeGoldPrice> {

    /**
     * 获取最新金价入库
     * @return
     */
    RealtimeGoldPrice getLatestGoldPrice();

    /**
     * 获取折线图数据
     */
    JSONObject getChartData();

}
